.myDesign {
    position: relative;
    font-size: 24rpx;
    min-height: 100vh;
    box-sizing: border-box;
    padding-top: 210rpx;
    padding-left: 20rpx;
    padding-right: 20rpx;
    padding-bottom: calc(env(safe-area-inset-bottom) + 96rpx);
    overflow-x: hidden;
    background-color: #F2F2F2;

    :global(.nut-virtuallist-item) {
        overflow: visible;
    }

    .cartItem {
        background-color: #ffffff;
        align-items: center;
        padding: 20rpx 20rpx 20rpx 20rpx;
        margin: 20rpx;
        border-radius: 34rpx;
        box-sizing: border-box;
        position: relative;
        overflow: visible;
        width: calc(100% - 40rpx);
        min-height: 160rpx;
    }

    .itemImage {
        width: 132rpx;
        height: 132rpx;
        margin-right: 26rpx;
        margin-top: 10rpx;
    }

    .thumbnailContainer {
        position: absolute;
        right: 20rpx;
        top: 0;
        width: 60rpx;
        height: 60rpx;
        border-radius: 8rpx;
        overflow: hidden;
        border: 1px solid #eee;
    }

    .thumbnailImage {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .itemDetails {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .itemName {
        font-size: 28rpx;
        font-weight: bold;
        white-space: nowrap;
        overflow: hidden;
        max-width: 100%;
        display: inline-flex;
        vertical-align: middle;
    }

    .itemInfo {
        margin-top: 10rpx;
        font-size: 12px;
        color: #888;
        margin-bottom: 3px;
    }

    .itemRadio {
        position: relative;
        display: inline-block;
        width: 32rpx;
        height: 32rpx;
        border: 2rpx solid #ccc;
        border-radius: 50%;
        margin: 0rpx 20rpx 0px 0px;
        vertical-align: middle;
        box-sizing: border-box;

        .itemRadioInner {
            width: 20rpx;
            height: 20rpx;
            border: 4rpx solid #ffffff;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);

            &.active {
                background-color: #fd7901 !important;
            }
        }
    }

    .tryTemplateBtn {
        font-size: 22rpx;
        height: 48rpx;
        line-height: 48rpx;
        background-color: transparent;
        color: #666666;
        border: 1px solid #ddd;
        padding: 0 16rpx;
        min-width: auto;

        &[disabled] {
            color: #ccc;
            border-color: #eee;
            background-color: #f9f9f9;
        }
    }

    .sizeButtonRow {
        display: flex;
        justify-content: space-between;
        align-items: center;
        // margin-top: 10rpx;
    }

    .expiredTag {
        display: inline-block;
        background-color: #f5f5f5;
        color: #999;
        font-size: 20rpx;
        padding: 2rpx 10rpx;
        border-radius: 4rpx;
        margin-left: 10rpx;
    }

    .expiredItem {
        opacity: 0.7;
    }

    .manageButtons {
        display: flex;
        margin: 0 0 20rpx 0;
        padding: 0 10rpx;

        .deleteBtn {
            margin-right: auto;
            margin-left: 0;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;

            &.show {
                opacity: 1;
                pointer-events: all;
            }
        }
    }

    /* 新增修改尺码样式 */
    .uploadSize {
        color: #fd7901;
        margin-left: 10rpx;
        font-size: 12px;
    }

    /* 尺码选择弹窗样式 */
    .sizeOptions {
        display: flex;
        flex-wrap: wrap;
        gap: 20rpx;
        margin: 20rpx 0;
    }

    .sizeOption {
        padding: 10rpx 20rpx;
        border: 1px solid #ddd;
        border-radius: 8rpx;
        font-size: 12px;

        &.selected {
            border-color: #fd7901;
            color: #fd7901;
            background-color: #fff8f0;
        }
    }

    .confirmButton {
        margin-top: 40rpx;
    }
    
    /* 修改颜色按钮样式 */
    .modifyColor {
        color: #fd7901;
        margin-left: 10rpx;
        font-size: 12px;
    }
    
    /* 修改标题按钮样式 */
    .modifyTitle {
        color: #fd7901;
        margin-left: 10rpx;
        font-size: 12px;
        vertical-align: middle;
        display: inline-flex;
        align-items: center;
    }
    
    /* 标题输入框样式 */
    .titleInput {
        font-size: 28rpx;
        font-weight: bold;
        width: 100%;
        border: 1px solid #fd7901;
        border-radius: 4rpx;
        padding: 4rpx 8rpx;
        margin-bottom: 6rpx;
    }
    
    /* 标题编辑区域样式 */
    .titleEditArea {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    /* 标题编辑按钮区域 */
    .titleEditButtons {
        display: flex;
        justify-content: flex-end;
        margin-top: 6rpx;
        
        .confirmTitleBtn, .cancelTitleBtn {
            font-size: 20rpx;
            height: 40rpx;
            line-height: 40rpx;
            padding: 0 12rpx;
            margin-left: 10rpx;
        }
    }
}